#include <iostream>
#include<cstring>
#include <cassert>
using namespace std;
char* my_strcpy(char* dest, const char* src)
{
	char* ret = dest;
	assert(dest != NULL);
	assert(dest != NULL);
	while (*dest++ == *src++)
	{
		;
	}
	*dest = *src;
	return ret;
}

int main() {
 /*char* arr1 = "xxxxxxxxxx";
	char arr2[6] = { 'a', 'b', 'c', 'd', 'e' , '\0'};
	strcpy(arr1, arr2);
	printf("%s\n", arr1);

	return 0;*/
	char arr1[20] = "hello,world";
	char arr2[] = "zxxxxxx";
	my_strcpy(arr1 + 6, arr2);
	cout << arr1;
	return 0;

}
